package lc20240626;

/**
 * @author 不知名帅哥
 * @version 1.0
 * @description 172. 阶乘后的零
 * @date 2024/6/26 15:03
 */
public class FactoriaSumZero {
    //主要是计算每个数字中含有多少个5
    public static int trailingZeroes(int n) {
        int count = 0;
        while (n > 0) {
            n = n / 5;
            count += n;
        }
        return count;
    }

    public static void main(String[] args) {
        System.out.println(trailingZeroes(10));
    }
}
